import React, {Component} from 'react'
class Login extends Component{
    ChangisLogin=()=>{
        window.localStorage.setItem("user","admin")
        this.props.history.go(-1)
    }
    render(){
        return <div className="login">
            <p><input type="text" placeholder="请输入账号"/></p>
            <p><input type="text" placeholder="请输入密码" /></p>
            <button onClick={this.ChangisLogin}>登录</button>
        </div>
    }
}
export default Login